﻿<{include file="element/inc_header.html"}>

    <div id="box">
		<div id="bg_light" style="z-index: -1;"></div>
		<div id="bg_cloud"></div>
     	<div id="rs_top">
     		<em class="rs_hd" style="background-image: url(<{$user.headimgurl}>);"></em>
     		<img class="money" src="index/www/img/result_money.png" />
     	</div>
     	<div id="rs_txt">
     		<div class="unam"><{$user.nickname}> 收到借钱总额</div>
     		<div class="pc">¥<{$gm.money}>元</div>
     		<h4 id="seltxt">我知道你们还是爱我的，票票越多越有爱</h4>
     		<div id="sel_item">
     			<p>我知道你们还是爱我的，票票越多越有爱</p>
     			<p>称兄道弟都是假象，姐妹真情此刻无情！</p>
     		</div>
     	</div>
     	
		<div id="list_box">
			<h3>好友借钱记录</h3>
			<div id="sc_box">
<{foreach from=$datalist item=itm}>
<{if $itm.user_name}>
				<p>
					<em style="background-image: url(<{$itm.user_img}>);"></em>
					<b><{$itm.user_name}> 借给你 <{$itm.money}>元</b>
				</p>
<{/if}> 
<{/foreach}>
			</div>
		</div>
		<div class="vr_btn">
			<div class="v_btn_img"></div>
			<div class="v_btn_1" id="btn_down"></div>
			<div id="btn_view_rpb" class="v_btn_2 fr"></div>
			<{if $isMy}>
				<div id="btn_view_share" class="v_btn_3 fl"></div>
			<{else}>
				<div id="btn_view_test" class="v_btn_4 fl"></div>
			<{/if}>
		</div>
		
		<div id="pop_mark"></div>
		<div id="pop_phb">
			<div class="closebtn closebtn1"></div>
			<div id="phb_box">
				<p class="t1"><i>&nbsp;</i><b>总冠军</b><em><img src="http://wx.qlogo.cn/mmopen/hQswMZnLu6VSclj3mj5G0X29pX533W0v94WfeH4ficGl1q6d9Fs9gK1icQqaKicOX6JMZr8N4icJDVLY4zzPwUk1Dmwsibc4cO556/0" /></em><span>Fly^_^黄..</span></p>
    			<p class="t1"><i>&nbsp;</i><b>总冠军</b><em><img src="http://wx.qlogo.cn/mmopen/hQswMZnLu6VSclj3mj5G0QTEvWTsnU9IJeic1uM3QxBibejjPCbFaXejdkOCI8gvoW0NNSq3Cc6OlkpOU2oV8cLe4k7668Ykcn/0" /></em></em><span>谢锦园</span></p>
				<p class="t2"><i>1</i><b>第一周冠军</b><em><img src="http://wx.qlogo.cn/mmopen/hQswMZnLu6VSclj3mj5G0X29pX533W0v94WfeH4ficGl1q6d9Fs9gK1icQqaKicOX6JMZr8N4icJDVLY4zzPwUk1Dmwsibc4cO556/0" /></em><span>Fly^_^黄..</span></p>
				<p class="t2"><i>2</i><b>第二周冠军</b><em><img src="http://wx.qlogo.cn/mmopen/Q3auHgzwzM6AGXAAO2NPAic0BhUbIgF8cj8Wibmq8XFOia7xgOFYNf5kKrpNNqYntdQc9Qlruga0mibONaBmW1MHsebYj9SIPe2V5MjbMUdicX6s/0" /></em><span>瀚堃</span></p>
				<p class="t2"><i>3</i><b>第三周冠军</b><em><img src="http://wx.qlogo.cn/mmopen/fFR61DMUETwS8ZgfP8xV9NXpBs726r0mjib9UPuoLn3ibM7gicX5TnsFvozu9TAUdy7kEmCVXHy2jKFOic89o3Sb7zGeWdLkK0KO/0" /></em><span>黄老湿</span></p>
				<p class="t2"><i>4</i><b>第四周冠军</b><em><img src="http://wx.qlogo.cn/mmopen/hQswMZnLu6VSclj3mj5G0QTEvWTsnU9IJeic1uM3QxBibejjPCbFaXejdkOCI8gvoW0NNSq3Cc6OlkpOU2oV8cLe4k7668Ykcn/0" /></em><span>谢锦园</span></p>
			</div>
			<img id="ewm" src="index/www/img/ewm.png?tt=35413" />
		</div>
		
		<div id="pop_rpb">
			<div class="closebtn closebtn2"></div>
			
			<div class="rpb_txt">
				<{if $pm<1 }>
					OMG！<{$user.nickname}>居人品榜榜首！<br />万元大礼唾手可得！继续加油<br />
				<{else}>
					OMG！<{$user.nickname}><br />距万元榜首大礼还有<b><{$pm}></b>个坑位<br />
					看看榜首圈了多少软妹币 <br />
				<{/if}>
				<span>注：周冠军可获得1000元现金大奖，<br />平安夜两位总冠军各获5000元现金大奖！</span>
			</div>
			<div id="sc_box1"></div> 
			<{if $isMy}>
			<div class="rpb_btn_box">
				<span id="btn_view_gjp" class="tbtn rbtn1 fl"></span> 
				<span id="btn_jxqmz" class="tbtn rbtn2 fr"></span>
			</div>
			<{else}>
			<div class="rpb_btn_box" style="text-align: center">
				<span id="btn_view_gjp" class="tbtn rbtn1" style="margin: 0px auto;"></span> 
			</div>
			<{/if}>
		</div>
		
		<div id="share_box2">
			<img src="index/www/img/share_img2.png" />
		</div>
		
		
		<div id="share_box3">
			<img src="index/www/img/share_img3.png" />
		</div>
		
	</div>
	
<script language="javascript">
var sTitle = '我知道你们还是爱我的，票票越多越有爱';
var sDesc = '';
var sImg = '<{$user.headimgurl}>';
var sLink = 'http://pingan.weixinzjit.com/index.php/main/view?openid=<{$user.openid}>'; 
</script>
<{include file="element/inc_loading.html"}>
<script type="text/javascript">
var su = null;
function start(){
		/* document.body.addEventListener('touchmove', function(event) { event.preventDefault(); }, false); */
		if($(window).height()<961){
			$('#list_box').height($('#list_box').height()-100);
			$('#sc_box').height($('#sc_box').height()-100);
		}
		$('#seltxt').click(function(){ 
			$('div#sel_item').show();
		});
		$('div#sel_item p').click(function(){
			$('#seltxt').text($(this).text());
			$('div#sel_item').hide();
			sTitle = $(this).text();
			InitSetting();
		}); 
		new TouchScroll({id:'sc_box','width':16,mouseWheel:true,keyPress:true,'opacity':0.5,minLength:10});
		$.getJSON('/index.php/main/getRpb/',function(obj){  
			$.each(obj.d,function(i,d){ 
				$('#sc_box1').append('<p><em style="background-image: url('+d.user_img+');"></em><b>'+d.user_name+' 募资 '+d.money+'元</b></p>');
			});
		});
		
		$('#btn_view_test').click(function(){
			location.href = '/index.php/main/index';
		});
		
		$('.closebtn1').click(function(){
			$('#pop_phb , #pop_mark').fadeOut();
		});
		
		$('#btn_view_rpb').click(function(){
			$('#pop_rpb').css('top',($(window).height()-940)/2);
			$('#pop_mark,#pop_rpb').fadeIn();
			if(su==null) su = new TouchScroll({id:'sc_box1','width':16,mouseWheel:true,keyPress:true,'opacity':0.5,minLength:10});
		});
		
		$('#btn_view_share').click(function(){
    		$('#pop_mark,#share_box3').fadeIn();
			sLink = 'http://pingan.weixinzjit.com/index.php/main/view?openid=<{$user.openid}>';  
			sTitle = $('#seltxt').text();
			InitSetting();
		});
		
		$('#share_box2').click(function(){
			$('#pop_mark,#share_box2').fadeOut();
		});
		
		$('#share_box3').click(function(){
			$('#pop_mark,#share_box3').fadeOut();
		});
		
		$('.closebtn2').click(function(){
			$('#pop_mark,#pop_rpb').fadeOut();
		});
		
		$('#btn_view_gjp').click(function(){
			$('#pop_phb').css('top',($(window).height()-945)/2);
			$('#pop_mark,#pop_phb').fadeIn();
		});
		
		$('#btn_down').click(function(){
			location.href = 'http://www.10100000.com/m/iloan/apply.html?utm_source=LFXP2P104-wap&utm_medium=CPC&utm_campaign=iloan1.2&WT.mc_id=CXX-FUWUWX-LFXP2P104-wap-iloanB&';
		});
		
		$('#btn_jxqmz').click(function(){
    		$('#pop_mark,#share_box2').fadeIn();
			sImg = '<{$user.headimgurl}>';
			sLink = 'http://pingan.weixinzjit.com/index.php/main/talk/random/<{$gm.uniokey}>';
			sTitle = '<{$user.nickname}>冲刺榜首助他一臂之力！';
			InitSetting();
		});
        
    	$('#ewm').click(function(){
			location.href = 'index.php/main/test';
		});

	};
</script>
<!-- 微信分享 Start -->

<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<{include file="element/inc_share.html"}>

<!-- 微信分享 End -->
<{include file="element/inc_footer.html"}>